<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCountryOutTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('country_out', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string("title",200)->comment("新闻标题");
            $table->string("subtitle",200)->comment("副标题");
            $table->integer('newcat_id',10)->comment("新闻分类");
            $table->string("key_seo",300)->comment("关键字");
            $table->string("key_description",400)->comment("描述");
            $table->string("info",400)->comment("简介");
            $table->text("content")->comment("内容");
            $table->string("title_attr",30)->comment("标题属性");
            $table->string("title_color",20)->comment("标题颜色");
            $table->string("author",20)->comment("作者");
            $table->string("source",20)->comment("来源");
            $table->tinyInteger("is_check",2)->default(1)->comment("是否审核，１正常２待审核");
            $table->string("title_url",50)->comment("标题的外部链接");
            $table->tinyInteger("is_hot",2)->comment("是否推荐");
            $table->tinyInteger("is_first")->comment("是否头条");
            $table->string("images",50)->comment("新闻默认图片");
            $table->tinyInteger("status",2)->default(1)->comment("是否显示，１正常２屏蔽");
            $table->tinyInteger("is_delete",2)->default(1)->comment("是否删除，１正常２删除");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('country_out');
    }
}
